<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/include.jsp"%>
<body>
<div class="tleft"></div>
<div class="tright"></div>
<div class="tbg">新增参数</div>

<s:form namespace="/systemParameter" action="addOrUpdate!addOrUpdate.action">
<s:if test="systemParameter.id != null">
<s:hidden name="systemParameter.id"/>
</s:if>
<table cellpadding="1" cellspacing="1"  class="tableInput">
	<s:if test="hasErrors()">
		<s:if test="hasFieldErrors()">
			<tr align="center">
				<td class="textError"><font color="red" size="4"><s:fielderror/></font></td>
				<td class="tableHeader2"></td>
			</tr>
		</s:if>
		<s:if test="hasActionErrors">
			<tr align="center">
				<td class="textError"><font color="blue"><s:actionerror/></font></td>
				<td class="tableHeader2"></td>
			</tr>
		</s:if>	
	</s:if>
	<tr>
		<td width="15%" class="tableHeader2"><span class="fontred">*</span>父节点</td>
		<td width="19%" class="tableHeader3"><s:select name="systemParameter.parentId" list="parents"/></td>
	</tr>
	<tr>
		<td width="15%" class="tableHeader2"><span class="fontred">*</span>参数类型 </td>
		<td width="19%" class="tableHeader3"><s:select name="systemParameter.type" list="types"/></td>
	</tr>
	<tr>
		<td width="15%" class="tableHeader2"><span class="fontred">*</span>参数值 </td>
		<td width="19%" class="tableHeader3"><s:textfield name="systemParameter.name" validate="{type:'required'}"/></td>
	</tr>
	<tr>
		<td width="15%" class="tableHeader2">参数描述:</td>
		<td width="19%" class="tableHeader3"><s:textfield name="systemParameter.detail"/></td>
	</tr>
</table>
<div class="tableHeader4">
	<s:submit cssClass="btn_Text2" value="提交" ></s:submit>
	<input name="back" type="button" class="btn_Text2"  value="返回" onclick="location.href='list.action'" />
</div>
</s:form>
</body>